﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OneCard.Face8280Module.DeviceModel.Model.Access
{
    /// <summary>
    /// 设备人员权限结构
    /// </summary>
    public class APIModel_DevicePeople
    {
        ///// <summary>
        ///// 权限ID
        ///// </summary>
        //public int AccessID { get; set; }
        /// <summary>
        /// 人员编号（数字<20位）
        /// </summary>
        public long EmployeeID { get; set; } //是
        /// <summary>
        /// 人员姓名（字符<32位）
        /// </summary>
        public string EmployeeName { get; set; } //是
        /// <summary>
        /// 职务
        /// </summary>
        public string EmployeeJob { get; set; } //否
        /// <summary>
        /// 联系方式
        /// </summary>
        public string EmployeePhone { get; set; } //否
        /// <summary>
        /// 身份证信息
        /// </summary>
        public string EmployeeIdentity { get; set; } //否
        /// <summary>
        /// 地址信息
        /// </summary>
        public string EmployeeAddress { get; set; } //否


        /// <summary>
        /// 密码，纯数字,长度：（0 / 4-8）
        /// </summary>
        public string EmployeePassword { get; set; } //否
        /// <summary>
        /// IC卡号 纯数字
        /// </summary>
        public long EmployeeIc { get; set; } //否
        /// <summary>
        /// 照片格式”base”:bse64 编码字符，”path”:下载路径
        /// </summary>
        public string EmployeePhotoWay { get; set; } //是
        /// <summary>
        /// 照片
        /// </summary>
        public string EmployeePhoto { get; set; } //是
        /// <summary>
        /// 人脸识别阈值，0:未设置，其他：阈值大小
        /// </summary>
        public float EmployeeShold { get; set; } //否


        /// <summary>
        /// 角色 0--普通人员；1--管理员;2--黑名单
        /// </summary>
        public int EmployeeRoot { get; set; }

        /// <summary>
        /// 开门时段组 1-64
        /// </summary>
        public int TimegroupID { get; set; }


        /// <summary>
        /// 权限结构 人员权限信息
        /// </summary>
        public APIModel_PeopleAccessDetail DevicePassBean { get; set; }

        /// <summary>
        /// 照片的MD5
        /// </summary>
        public string PhotoMD5 { get; set; }

        public APIModel_DevicePeople()
        {
            DevicePassBean = new APIModel_PeopleAccessDetail();
        }
    }
}
